﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master"
   CodeBehind="wfMaquinaMnt.aspx.cs" Inherits="PD.wfMaquinaMnt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Import Namespace="Texfina.Common.Mg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript">
      window.onload = function () {


         var menuTable = document.getElementById('<%=mnuToolbar.ClientID %>');
         var menuLinks = menuTable.getElementsByTagName("a");
         if (menuLinks != null) {
            switch (menuLinks.length) {
               case 2:
                  menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                  break;

               case 3:
                  menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                  menuLinks[1].onclick = function () { return validateEditForm('_BTTSAVNEW') }
                  break;
            }
         }

         this.MessageOnPostback();
      }

      function panelOnUpdating() {
         updatePanelAnimationUpdating();
      }

      function panelOnUpdated() {
         ResizeGrid();
         updatePanelAnimationUpdated();
      }
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <div class="ToolBar">
      <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" Orientation="Horizontal"
         OnMenuItemClick="mnuToolbar_MenuItemClick">
         <Items>
            <asp:MenuItem Text="Guardar" Value="_BTTSAVE" ImageUrl="../Images/Icons/Enabled/SAVE.png">
            </asp:MenuItem>
            <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
            </asp:MenuItem>
         </Items>
      </asp:Menu>
   </div>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
         <div class="DataHeader">
            <table id="TableDataHeader" cellpadding="0" cellspacing="0">
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     Datos Generales
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="0" cellspacing="2">
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td>
                                 Maquinax :
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtidMaquina" runat="server" Width="140px"></esd:esdTextBox> 
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Descripción :
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtdsMaquina" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 
                              </td>
                              <td colspan="2">
                                 <%--<asp:DropDownList ID="ddlidMoneda" runat="server" Width="140px"></asp:DropDownList>--%>
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td>
                                 Capacidad / Día:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtnuCapacidad" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Horas Productivas:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtnuHoras" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Tipo:
                              </td>
                              <td colspan="2">
                                 <%--<esd:esdTextBox ID="txtidTipo" runat="server" Width="30px"></esd:esdTextBox> (G=Generica / E=Especifica)--%>
                                <asp:DropDownList ID="ddlidTipMaquina" runat="server" Width="100px"></asp:DropDownList>
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                              <td>
                                 Costo / Minuto:
                              </td>
                              <td colspan="2">
                                <esd:esdTextBox ID="txtnuCosto" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Planeamiento:
                              </td>
                              <td colspan="6">
                                <asp:CheckBox ID="chkstPlanning" runat="server" Text="Planning" />
                                <asp:CheckBox ID="chkstVisiblePlan" runat="server" Text="Visible en Planning?" />
                              </td>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                        </table>
                     </div>
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
                
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     Datos Maquina
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="0" cellspacing="2">
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td colspan="11">
                                 Capacidad (Volumen)
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td colspan="11">
                                  <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                      <table width="100%" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td style="width: 10px;">&nbsp;</td>
                                          <td>
                                             Volumen Maximo :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtnuVolumenMax" runat="server" Width="140px"></esd:esdTextBox> 
                                          </td>
                                          <td>
                                             &nbsp;
                                          </td>
                                          <td>
                                             Volumen Minimo :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtnuVolumenMin" runat="server" Width="140px"></esd:esdTextBox>
                                          </td>
                                          <td>
                                             &nbsp;
                                          </td>
                                          <td>
                                             Volumen Medio :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtnuVolumenMed" runat="server" Width="140px"></esd:esdTextBox>
                                          </td>
                                          <td>
                                             &nbsp;
                                          </td>
                                          <td>
                                             Rb :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtnuRb" runat="server" Width="140px"></esd:esdTextBox>
                                          </td>
                                          <td style="width: 10px;">
                                             &nbsp;
                                          </td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                        </tr>
                                      </table>
                                  </div>
                              </td> 
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td colspan="11">
                                 Capacidad (Peso)
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td colspan="11">
                                  <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                      <table width="100%" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td style="width: 10px;">&nbsp;</td>
                                          <td>
                                             Peso Maximo :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtPesoMaximo" runat="server" Width="140px"></esd:esdTextBox> 
                                          </td>
                                          <td>
                                             &nbsp;
                                          </td>
                                          <td>
                                             Peso Minimo :
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtPesoMinimo" runat="server" Width="140px"></esd:esdTextBox>
                                          </td>
                                          <td>
                                             &nbsp;
                                          </td>
                                          <td>
                                             Peso Medio
                                          </td>
                                          <td colspan="2">
                                             <esd:esdTextBox ID="txtPesoMedio" runat="server" Width="140px"></esd:esdTextBox>
                                          </td>
                                          <td style="width: 10px;">
                                             &nbsp;
                                          </td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                        </tr>
                                      </table>
                                  </div>
                              </td> 
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td>
                                 Volumen Residual:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtnuVolumenRes" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Volumen Tope:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtnuVolumenTope" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Nro. Micro:
                              </td>
                              <td colspan="2">
                                <esd:esdTextBox ID="txtnuMicro" runat="server" Width="140px"></esd:esdTextBox>
                                
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                              <td>
                                 Nro Tubos:
                              </td>
                              <td colspan="2">
                                <esd:esdTextBox ID="txtnuTubos" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Fac. Abs.:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtFacAbs" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Fac. Abs H:
                              </td>
                              <td colspan="2">
                                <esd:esdTextBox ID="txtFacAbsH" runat="server" Width="140px"></esd:esdTextBox>
                                
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                              <td>
                                 Temp. Maxima:
                              </td>
                              <td colspan="2">
                                <esd:esdTextBox ID="txtnuTempMax" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Maquina Auxiliar.:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtidMaquinaAux" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Dosifica:
                              </td>
                              <td colspan="2">
                                <asp:CheckBox ID="CheckBox1" runat="server" Text="Automatico?" />
                                
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                        </table>
                     </div>
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
            </table>

         </div>

      </ContentTemplate>
   </asp:UpdatePanel>
   <ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
      TargetControlID="updatePanel1">
      <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
   </ajax:UpdatePanelAnimationExtender>
   <div id="updateProgressDiv" class="updateProgress" style="display: none">
      <table width="100%">
         <tr>
            <td valign="middle">
               <img src="../Images/Controls/Loading.gif" />
            </td>
            <td valign="middle">
               <span class="updateProgressMessage">Cargando ...</span>
            </td>
         </tr>
      </table>
   </div>
<%--   <asp:HiddenField ID="hdnidPlanilla" runat="server" />
   <asp:HiddenField ID="hdnMsgOPB" runat="server" />
   <asp:HiddenField ID="hdnidConRemu" runat="server" />
   <asp:HiddenField ID="hdnidMes" runat="server" />
   <asp:HiddenField ID="hdnidForPago" runat="server" />--%>
</asp:Content>
